/********************************************************************************
 * Copyright (c) 2017-2019 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
 * which is available at https://www.apache.org/licenses/LICENSE-2.0.
 *
 * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
 ********************************************************************************/

div.node {
    padding: 3px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: small;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    background: #ffffff;
    cursor: move;
    border: 2px solid black;
    background-image: linear-gradient(to bottom, #FFFFFF 0%, #EBF2F7 100%);
}

div.nodeTemplate {
    width: 225px;
    border-radius: 1em;
}

div.node:hover {
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25), 0 5px 5px rgba(0, 0, 0, 0.22);
}

div.pattern {
    border-radius: 9%;
    width: 75px;
    height: 75px;
    z-index: 10;
}

.patternImage {
    margin-top: 8px;
    margin-left: 4px;
    max-width: 50px;
    max-height: 50px;
}

.winery-image {
    height: 50px;
    position: relative;
}

.winery-image img {
    max-width: 50px;
    max-height: 50px;
    margin-top: 0.1em;
    border-radius: 10%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

.padding-top--2px {
    padding-top: 2px;
}

.icon-styling {

    color: rgba(200, 200, 200, 1);
}

[draggable=true] {
    cursor: move;
}

a {
    font-size: small;
    line-height: 25%
}

.hidden {
    display: none;
}

accordion-group {
    margin-top: .25em;
}

p {
    line-height: 22%
}

div.selected {
    background: rgb(216, 238, 255);
    background-image: linear-gradient(to bottom, #FFFFFF 0%, #FFD391 100%);
    margin: 0;
}

div.unselected {
    margin: 0;
}

div.working {
    pointer-events: none;
}

.node-template-header {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.node rounded {
    pointer-events: auto;
    cursor: pointer;
}

.endpointContainer {
    padding: 0 !important;
    margin: 0;
}

div.connectorEndpoint {
    cursor: pointer;
}

div.connectorEndpoint:hover {
    cursor: pointer;
    background: #ffffff;
}

div.connectorBox {
    height: 15px;
    width: 30px;
}

div.connectorLabel {
    height: 15px;
    line-height: 16px;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

td {
    padding: 0;
}

button.btn.btn-sm.btn-outline-secondary {
    /*  background-color: rgba(255,255,255,0.8);*/
    background-color: rgba(237, 234, 230, 1) !important;
    color: #000 !important;
    cursor: copy;
    padding: 0;
    border-radius: .4em;
    width: 215px;
    text-align: left;
}

button.btn.btn-sm.btn-outline-secondary:hover, button.btn.btn-sm.btn-outline-secondary:focus {
    background-color: rgba(255, 255, 255, 1) !important;
    color: #212121 !important;
}

.relationship-button {
    border: 1px solid;
    width: 100%;
}

:host >>> .popover {
    background-color: #1DC58A;
    color: #000;
}

:host >>> .popover > .arrow:after {
    border-top-color: #009688;
}

.popover-component {
    padding: 0.5em;
    margin: -0.4em -0.7em;
    border: 1px solid #CFD8DC;
    border-radius: 2px;
    color: #000;
    cursor: help;
}

.popover-component:hover {
    background-color: #CFD8DC;
    border-radius: 2px;
    color: #000;
}

.policyIconsAnnotation {
    position: absolute;
    top: -27px;
    width: max-content;
}

.policyAnnotation {
    margin: 3px;
    position: relative;
    max-width: 30px;
    max-height: 30px;
}

.deploymentTech {
    position: absolute;
    top: 3px;
    float: right;
    left: 185px;
}

.newVersionTriangle {
    position: absolute;
    right: -4px;
    top: -12px;
    color: red;
    font-size: 20px;
}

.live-modeling-column {
    align-self: start;
    padding: 3px;
}

.live-modeling-column .node-instance-status {
    cursor: pointer;
    margin: 0 auto;
    background-color: black;
    border: 1px solid black;
    height: 10px;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    width: 10px;
}

.has-error {
    border: 1px solid red;
    border-radius: 0.25rem;
}

div.overlay {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1em;
    pointer-events: none;
}

div.overlay .overlay-icon {
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(50%, -50%);
}
